<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/default/easyui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/icon.css}">
    <script type="text/javascript" th:src="@{/easyui/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/easyui/jquery.easyui.min.js}"></script>
    <script type="text/javascript">
        $(function(){
            $("#dg").dialog({
                title: '录入员工',
                closed:false,
                cache: false,
                modal: true,
                width: 500,
                height: 200,
                iconCls: 'icon-save',
                buttons: [{
                    text:'提交',
                    iconCls:'icon-ok',
                    handler:function(){
                         $("#form").submit();
                    }
                },{
                    text:'关闭',
                    handler:function(){
                        $("#dg").dialog("close");
                    }
                }]
            });
        });
    </script>
</head>

<body>
  <div id="dg">
      <form action="/test/addUser" method="post" id="form">
          <label>员工姓名:</label><input type="text" name="name"/>
          <br/>
          <br/>
          <label>入职部门:</label><input type="text" name="job"/>
      </form>
  </div>
</body>
</html>